package bc

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BcProjectRouter struct {
}

// InitBcProjectRouter 初始化 bcProject表 路由信息
func (s *BcProjectRouter) InitBcProjectRouter(Router *gin.RouterGroup) {
	bcProjectRouter := Router.Group("bcProject").Use(middleware.OperationRecord())
	bcProjectRouterWithoutRecord := Router.Group("bcProject")
	var bcProjectApi = v1.ApiGroupApp.BcApiGroup.BcProjectApi
	{
		bcProjectRouter.POST("createBcProject", bcProjectApi.CreateBcProject)             // 新建bcProject表
		bcProjectRouter.DELETE("deleteBcProject", bcProjectApi.DeleteBcProject)           // 删除bcProject表
		bcProjectRouter.DELETE("deleteBcProjectByIds", bcProjectApi.DeleteBcProjectByIds) // 批量删除bcProject表
		bcProjectRouter.PUT("updateBcProject", bcProjectApi.UpdateBcProject)              // 更新bcProject表
		bcProjectRouter.GET("getProjectList", bcProjectApi.GetProjectList)                // 获取全部项目
	}
	{
		bcProjectRouterWithoutRecord.GET("findBcProject", bcProjectApi.FindBcProject)       // 根据ID获取bcProject表
		bcProjectRouterWithoutRecord.GET("getBcProjectList", bcProjectApi.GetBcProjectList) // 获取bcProject表列表
	}
}
